package com.mine.springmvc.syn;

//不安全的取钱
public class UnsafeBank {
}


class Account{
    int money; //余额
    String name; //卡明

    public Account(int money, String name) {
        this.money = money;
        this.name = name;
    }
}

//银行：模拟取款
class Drawing extends Thread{

    Account account; //账户

    int drawingMoney; //取了多少钱

    public Drawing( Account account,int drawingMoney,int nowMoney){
        this.account = account;
        this.drawingMoney = drawingMoney;
    }


}
